package cn.z2huo.knowledge.concurrency.thinkinginjava.section_21_3.syncCodeBlock;

/**
 * 方法同步
 */
class PairManager extends BasePairManager {

    @Override
    public synchronized void increment() {
        pair.incrementX();
        pair.incrementY();
        store(getPair());
    }

}
